import Mock from 'mockjs'
const list = Mock.mock({
  'list|10': [
    {
      videoId: '@id',
      videoName: '@csentence',
      guideImageDesc: '@string',
      'videoType|1': [2, 1],
      'releaseStatus|1': [2, 1],
      url: 'https://media.w3.org/2010/05/sintel/trailer.mp4'
    }
  ]
})
const pub = {
  isMore: 0,
  pageIndex: 1,
  pageSize: 10,
  startIndex: 0,
  totalNum: 1,
  totalPage: 1
}
const dictMap = {
  videoType: {
    1: '111',
    2: '222'
  }
}
export default [
  // 视频
  // 分页查询视频集合
  {
    url: '/general/video/getVideoListPage',
    type: 'post',
    response: config => {
      return {
        code: 1,
        data: {
          ...list,
          ...pub
        },
        dictMap,
        msg: ''
      }
    }
  },
  // 修改视频
  {
    url: '/general/video/modifyVideo',
    type: 'post',
    response: config => {
      return {
        code: 1,
        msg: ''
      }
    }
  },
  // 新增视频
  {
    url: '/general/video/saveVideo',
    type: 'post',
    response: config => {
      return {
        code: 1,
        msg: ''
      }
    }
  },
  // 删除视频
  {
    url: '/general/video/removeVideo',
    type: 'post',
    response: config => {
      return {
        code: 1,
        msg: ''
      }
    }
  }
]
